package com.smec.remes.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by Administrator on 2018/1/11.
 */

public class ExtractNumber {
    public static  String _getNum(String a){
        String num;
        String regEx="[^0-9]";
        Pattern p = Pattern.compile(regEx);
        Matcher m = p.matcher(a);
        num=m.replaceAll("").trim();
        return num;
    }
}
